#include <stdio.h>
int main()
{
    double x;
    scanf("%lf", &x);
    if(x == 0.0)
    {
        printf("f(0.0) = 0.0");
    }else{
        printf("f(%.1f) = %.1f", x, 1 / x);
    }
    return 0;
}